﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SCopyRoomOper extends IMessageBase
    {
        public var fromEntityId:SEntityId;
        public var copyCode:int;
        public var oper:int;
        public var leaderMapId:int;
        public var leaderX:int;
        public var leaderY:int;
        public var extend:int;
        public var publicPlayer:SPublicPlayer;
        public var enterNums:Dictionary;
        public const _type:int = 5003;
        public static var _regist:SCopyRoomOper = new SCopyRoomOper(true);

        public function SCopyRoomOper(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SCopyRoomOper();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.fromEntityId.__write(param1);
            param1.writeInt(this.copyCode);
            param1.writeInt(this.oper);
            param1.writeInt(this.leaderMapId);
            param1.writeInt(this.leaderX);
            param1.writeInt(this.leaderY);
            param1.writeInt(this.extend);
            this.publicPlayer.__write(param1);
            DictEntityIdIntHelper.write(param1, this.enterNums);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.fromEntityId = new SEntityId();
            this.fromEntityId.__read(param1);
            this.copyCode = param1.readInt();
            this.oper = param1.readInt();
            this.leaderMapId = param1.readInt();
            this.leaderX = param1.readInt();
            this.leaderY = param1.readInt();
            this.extend = param1.readInt();
            this.publicPlayer = new SPublicPlayer();
            this.publicPlayer.__read(param1);
            this.enterNums = DictEntityIdIntHelper.read(param1);
            return;
        }// end function

    }
}
